to CS
V?
Hello,
I have just started using PowerShell and I have tried to retrive information from Active Directory but not been able to export the information to a csv file.
I want the script to find all groups named "Finance" and then read the "Info" attribute on this groups and export to a CSV file.
This is the script:
function connect{}
$colResults = $objSearcher.FindAll()
foreach ($objResult in $colResults)
{}
}
$csvfile="c:\finance.csv"
connect | export-csv $csvfile
When I open the csv file it only contains #TYPE system.int32
Thank you
Hakan